package com.example.web.controller;

import com.example.common.response.R;
import com.example.system.domain.Domain;
import com.example.system.domain.bo.PageBo;
import com.example.system.domain.vo.PageVo;
import com.example.system.service.DomainService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 代码生成
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/domain", method = {RequestMethod.POST, RequestMethod.GET})
@Api(value = "代码管理", tags = {"代码管理"})
public class DomainController {
    @Autowired
    public DomainService domainService;

    @ResponseBody
    @RequestMapping(value = "/getList")
    public R<PageVo<Domain>> getList(@RequestBody PageBo pageBo) {
        return R.ok(domainService.getList(pageBo));
    }

}
